home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
WINDOWS
/
BDATA20.ARJ
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-08-17
|
2KB
|
81 lines
echo off
cls
echo BirdData Installation
echo.
if "%1" == "" goto NoPath
echo Ready to install. This product requires approximately 2.5 MB.
echo Press CTRL-Break to abort or
pause
if "%2"=="" goto NoDel
if "%2"=="/d" goto DoDel
if "%2"=="/D" goto DoDel
echo Invalid switch used "%2"
goto End
:DoDel
echo.
echo The install program is about to delete the contents of the
echo %1 directory and all directories beneath it.
echo press CTRL-Break to stop process, or
pause
echo.
echo Deleting directory....
killdir %1
:NoDel
echo.
echo Creating default directory
md %1
echo Creating Subdirectory
echo ICONS.....
md %1\ICONS
echo.
copy install.txt %1
copy win30inf.txt %1
copy bdatareg.key %1
echo Unpacking files:
echo Default directory...
program %1
if errorlevel 1 goto error
echo Icon directory...
icons %1\ICONS
if errorlevel 1 goto error
echo.
echo Installation of BirdData is now complete.
echo.
echo Don't forget to either add %1 to your PATH, or else copy
echo the .DLL and .VBX files to a directory that is in your path.
echo A good directory to place them in is your Windows directory.
echo Refer to the install.txt instructions.
echo.
goto end
:error
echo **** E R R O R ****
echo.
echo An error occurred during the installation. Most likely, your
echo hard disk is full. Please correct the problem and run the INSTALL
echo batch file again.
echo.
goto end
:NoPath
echo.
echo You must specify a directory to install to.
echo.
echo You cannot run this program from the Windows Run command. You must
echo exit to a DOS prompt, or else open a DOS window.
echo.
echo Syntax: INSTALL Drive:\Path [/d]
echo Example: INSTALL C:\BIRDDATA
echo.
echo Where 'Drive:\Path' is the drive letter and the path of the hard disk
echo drive and directory where you wish to install this product.
echo.
echo Using the optional /d switch causes the contents of the specified
echo directory, and all directories beneath it, to be removed before
echo installation. This is useful when you are re-installing the
echo product and you don't want to be prompted each time the installation
echo detects an existing file. YOU WILL LOSE ANY DATA IN THE DIRECTORY
ECHO CHOSEN IF YOU USE THE /D SWITCH!
echo.
echo For example: INSTALL C:\BIRDDATA /d
pause
:end